home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text1376.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  2.6 KB  |  96 lines

  1. I'm working on adding a setext -> HTML converter to my HTTP server (I've
  2. got it mostly working already, it's 42 lines of perl, will be about 75
  3. when it's done).  The basic idea is to ease the mark-up required for simple
  4. documents (like email) but it'll work for complex documents as well because
  5. you can use other markup as needed.
  6.  
  7. Setext was created by Ian Feldman <ianf@random.se>, you can contact him for
  8. his setext documents.  I'll try and make them available via HTTP after
  9. I get my converter working better (they are in setext).
  10.  
  11. setext = structure-enchanced text
  12.  
  13. The Basics:
  14.  
  15.     Title        -> <TITLE>Title</TITLE>
  16.     =====        -> <H1>Title</H1>
  17.     subhead
  18.     -------        -> <H2>subhead</H2>
  19.     **bold**            -> <B>bold</B>
  20.     ~italic~            -> <I>italic</I>
  21.     _under_lined_       -> <I>under lined</I>
  22.     hyper_text_         -> <A HREF="http:foo">hyper text</A>
  23.     .. _hyper_text_ http:foo
  24.     .. other dotdot lines are ignored
  25.  
  26. Note that you can put the ".. _hyper_text_ ..." lines anywhere (at the
  27. end is a nice place).  This makes the text easier to read.
  28.  
  29. Setext also defines a blockquote and list style, I'll add support for
  30. them before I release it.
  31.  
  32. <BLOCKQUOTE> for lines like:
  33. > this is a block quote,
  34. > look familiar?
  35.  
  36. and <UL>...</UL> for:
  37.     * list item 1
  38.     * list item 2
  39.  
  40. Currently I can convert documents like:
  41.  
  42.     Sample Setext Document
  43.     ======================
  44.  
  45.     This is a sample setext_ document that shows off the various features
  46.     of setext_ and how easy it is write hypertext documents.
  47.  
  48.     Wouldn't **you** like to be able to write documents using this _simple_
  49.     form of document markup?
  50.  
  51.     What can you do with setext?
  52.     ----------------------------
  53.  
  54.     Most of the things you want to do like:  headers, sub-headers, **bold**,
  55.     _italic_, and hypertext links_.
  56.  
  57.     --sanders
  58.  
  59.     .. _links_  http:links
  60.     .. _setext_ http:setext
  61.  
  62. to:
  63.  
  64.     <HEAD>
  65.     <TITLE>Sample Setext Document</TITLE>
  66.     </HEAD>
  67.     <BODY>
  68.     <H1>Sample Setext Document</H1>
  69.     <P>
  70.     This is a sample 
  71.     <A HREF="http:setext">setext</A>
  72.     document that shows off the various features
  73.     of 
  74.     <A HREF="http:setext">setext</A>
  75.     and how easy it is write hypertext documents.
  76.     <P>
  77.     Wouldn't <B>you</B> like to be able to write documents using this <I>simple</I>
  78.     form of document markup?
  79.     <P>
  80.     <H2>What can you do with setext?</H2>
  81.     <P>
  82.     Most of the things you want to do like:  headers, sub-headers, <B>bold</B>,
  83.     <I>italic</I>, and hypertext 
  84.     <A HREF="http:links">links</A>
  85.     .
  86.     <P>
  87.     --sanders
  88.     <P>
  89.     </BODY>
  90.  
  91.  
  92. Is anyone else interested in this?
  93.  
  94. --sanders
  95.  
  96.